package com.asset.servlet.finance;
/**
 *@ClassName DelServlet2
 *@Author B21015118吴逸鑫
 *@Date 2022/6/9 20:04
 **/
import com.asset.service.FinanceService;
import com.asset.service.impl.FinanceServiceImpl;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/DelServlet")
public class DelServlet extends HttpServlet{
    FinanceService bookService = new FinanceServiceImpl();

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        bookService.del(request, response);

    }


    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");
        doGet(request, response);
    }

}
